package es.ibm.santillana.mdm.stringenumerationrule;

import com.ibm.pim.context.Context;
import com.ibm.pim.context.PIMContextFactory;
import com.ibm.pim.extensionpoints.CategoryStringEnumerationValueRuleFunctionArguments;
import com.ibm.pim.extensionpoints.CollaborationCategoryStringEnumerationValueRuleFunctionArguments;
import com.ibm.pim.extensionpoints.CollaborationItemStringEnumerationValueRuleFunctionArguments;
import com.ibm.pim.extensionpoints.ItemStringEnumerationValueRuleFunctionArguments;
import com.ibm.pim.extensionpoints.StringEnumerationValueRuleFunction;
import com.ibm.pim.hierarchy.Hierarchy;
import com.ibm.pim.hierarchy.HierarchyManager;

import es.ibm.santillana.mdm.common.bussinesmodel.ConfigModel;
import es.ibm.santillana.mdm.common.util.ConstSantillana;

public class TiposProductosRule implements StringEnumerationValueRuleFunction {

	//script_execution_mode=java_api="japi:///custom_jars/clases:es.ibm.santillana.mdm.stringenumerationrule.TipoDeProductoRules.class"
	
	@Override
	public String[] rule(ItemStringEnumerationValueRuleFunctionArguments arg0) {
		
		
		String[] valores = ConfigModel.getVisibleCatalogValues(ConstSantillana.CATALOGO_TIPOS_PRODUCTOS);
				
		return valores;
	}

	@Override
	public String[] rule(
			CategoryStringEnumerationValueRuleFunctionArguments arg0) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public String[] rule(
			CollaborationItemStringEnumerationValueRuleFunctionArguments arg0) {
		
		String[] valores = ConfigModel.getVisibleCatalogValues(ConstSantillana.CATALOGO_TIPOS_PRODUCTOS);
		
		return valores;
	}

	@Override
	public String[] rule(
			CollaborationCategoryStringEnumerationValueRuleFunctionArguments arg0) {
		// TODO Auto-generated method stub
		
		
		
		return null;
	}
	
	
}
